/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.bgIntlgn.client.entity.dictionary;

import yuhuibear.poat.annotations.relation.Field;
import yuhuibear.poat.annotations.relation.Table;
import yuhuibear.poat.object.bean.Bean;

/**
 * 对应于dictionary_types表
 * @author shenzhang
 */
@Table(name = "dictionary_types", constrain = "")
public class DictionaryType implements Bean{

    @Field(name = "name", type = "char(40)", constrain = "primary key")
    private String name;
    /**
     * 这个只是一个注释字段。
     */
    @Field(name = "comment", type = "varchar(250)", constrain = "")
    private String comment;
    /**
     * 为了降低编程的负担， 取消DictionaryType的 id 直接用typename作为 主键
     */

    public String getComment() {
        return comment;
    }

    public void setComment(String comment) {
        this.comment = comment;
    }

    public String getName() {
        return name;
    }

    public void setName(String typeName) {
        this.name = typeName.trim();
    }


}
